//
//  SickHeaderTableCell.m
//  QuickCure1
//
//  Created by JianFeng on 16/11/4.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "SickHeaderTableCell.h"
@interface SickHeaderTableCell()
@property (strong, nonatomic) IBOutlet UIImageView *imageViewTou;
@property (strong, nonatomic) IBOutlet UILabel *labName;
@property (strong, nonatomic) IBOutlet UILabel *labNumber;
@property (strong, nonatomic) IBOutlet UILabel *labIphone;
@property (strong, nonatomic) IBOutlet UILabel *labTime;
@property (strong, nonatomic) IBOutlet UIImageView *imageViewTU;
@property (strong, nonatomic) IBOutlet UILabel *labClassBING;
@property (strong, nonatomic) IBOutlet UILabel *labXIFen;
@property (strong, nonatomic) IBOutlet UILabel *labMiaoShu;

@property (strong, nonatomic) IBOutlet UIImageView *jingDuImageView;
@end
@implementation SickHeaderTableCell
-(void)awakeFromNib
{
    [super awakeFromNib];
    [self setupUI];
    
}
#pragma mark - 初始化
-(void)setupUI{
//    self.jingDuImageView.layer.anchorPoint = CGPointMake(0, 0.5);
//    [UIView animateWithDuration:1 animations:^{
//        self.jingDuImageView.transform = CGAffineTransformMakeScale(155, 1);
//    }];
}

#pragma mark - 重写set赋值
-(void)setModel:(PresonMondel *)model{
    
    _model = model;
    _labName.text = model.name;
    _labNumber.text = model.number;
    _labIphone.text = model.IPhone;
    
    _imageViewTU.image = model.casesPhoto;
    _labClassBING.text = model.ClassBING;
    _labXIFen.text = model.FenLeiBING;
    _labMiaoShu.text = model.title;
      //时间
    _labTime.text = [NSString stringWithFormat:@"日期:%@",model.times];
    
    self.jingDuImageView.layer.anchorPoint = CGPointMake(0, 0.5);
    [UIView animateWithDuration:1 animations:^{
        self.jingDuImageView.transform = CGAffineTransformMakeScale(155 , 1);
    }];
}

@end
